<script setup lang="ts">
import { getQclRightData } from '@/api/Quancheng';
import IncidentDisposition from '@/components/IncidentDisposition/index.vue';

const tableData = ref([]);
const emit = defineEmits(['postMessage']);
const goRiskDetection = (row) => {
  emit('postMessage', [row], '事件处置', '');
};
onMounted(async () => {
  const { data } = await getQclRightData({ type: 'waringInfos' });
  tableData.value = data.waringInfos;
});
</script>

<template>
  <IncidentDisposition @go-risk-detection="goRiskDetection" :table-data="tableData" />
</template>

<style scoped lang="scss"></style>
